
Configuration = ARM_MICRO

/workdir := .\
/outdir := lib\$(Configuration)
/intdir := lib\$(Configuration)

/srclist += $(FMLIB)\board\taaget_mbv22\mbed.srcf

/attach_intdir = mbed

/src += $(FMLIB)\mbed-os\drivers\FlashIAP.cpp 
/src += $(FMLIB)\mbed-os\drivers\I2C.cpp 
/src += $(FMLIB)\mbed-os\drivers\I2CSlave.cpp 
/src += $(FMLIB)\mbed-os\drivers\InterruptIn.cpp 
/src += $(FMLIB)\mbed-os\drivers\InterruptManager.cpp 
/src += $(FMLIB)\mbed-os\drivers\RawSerial.cpp 
/src += $(FMLIB)\mbed-os\drivers\Serial.cpp 
/src += $(FMLIB)\mbed-os\drivers\SerialBase.cpp 
/src += $(FMLIB)\mbed-os\drivers\SPI.cpp 
/src += $(FMLIB)\mbed-os\drivers\SPISlave.cpp 
/src += $(FMLIB)\mbed-os\drivers\Ticker.cpp 
/src += $(FMLIB)\mbed-os\drivers\Timeout.cpp 
/src += $(FMLIB)\mbed-os\drivers\Timer.cpp 
/src += $(FMLIB)\mbed-os\drivers\TimerEvent.cpp 
/src += $(FMLIB)\mbed-os\drivers\UARTSerial.cpp 
/src += $(FMLIB)\mbed-os\drivers\AnalogIn.cpp 
/src += $(FMLIB)\mbed-os\drivers\BusIn.cpp 
/src += $(FMLIB)\mbed-os\drivers\BusInOut.cpp 
/src += $(FMLIB)\mbed-os\drivers\BusOut.cpp 
/src += $(FMLIB)\mbed-os\drivers\CAN.cpp 
/src += $(FMLIB)\mbed-os\drivers\MbedCRC.cpp 
/src += $(FMLIB)\mbed-os\drivers\TableCRC.cpp 

/src += $(FMLIB)\mbed-os\hal\mbed_critical_section_api.c 
/src += $(FMLIB)\mbed-os\hal\mbed_flash_api.c 
/src += $(FMLIB)\mbed-os\hal\mbed_gpio.c 
/src += $(FMLIB)\mbed-os\hal\mbed_itm_api.c 
/src += $(FMLIB)\mbed-os\hal\mbed_lp_ticker_api.c 
/src += $(FMLIB)\mbed-os\hal\mbed_pinmap_common.c 
/src += $(FMLIB)\mbed-os\hal\mbed_sleep_manager.c 
/src += $(FMLIB)\mbed-os\hal\mbed_ticker_api.c 
/src += $(FMLIB)\mbed-os\hal\mbed_us_ticker_api.c 

/src += $(FMLIB)\mbed-os\platform\ATCmdParser.cpp 
/src += $(FMLIB)\mbed-os\platform\Stream.cpp 
/src += $(FMLIB)\mbed-os\platform\CallChain.cpp 
/src += $(FMLIB)\mbed-os\platform\FileBase.cpp 
/src += $(FMLIB)\mbed-os\platform\FileHandle.cpp 
/src += $(FMLIB)\mbed-os\platform\FilePath.cpp 
/src += $(FMLIB)\mbed-os\platform\FileSystemHandle.cpp 
/src += $(FMLIB)\mbed-os\platform\LocalFileSystem.cpp 
/src += $(FMLIB)\mbed-os\platform\mbed_application.c 
/src += $(FMLIB)\mbed-os\platform\mbed_assert.c 
/src += $(FMLIB)\mbed-os\platform\mbed_board.c 
/src += $(FMLIB)\mbed-os\platform\mbed_critical.c 
/src += $(FMLIB)\mbed-os\platform\mbed_error.c 
/src += $(FMLIB)\mbed-os\platform\mbed_interface.c 
/src += $(FMLIB)\mbed-os\platform\mbed_mktime.c 
/src += $(FMLIB)\mbed-os\platform\mbed_semihost_api.c 

/src += $(FMLIB)\mbed-os\platform\mbed_poll.cpp 
/src += $(FMLIB)\mbed-os\platform\mbed_sdk_boot.c 
/src += $(FMLIB)\mbed-os\platform\mbed_retarget.cpp 
/src += $(FMLIB)\mbed-os\platform\mbed_wait_api_rtos.cpp 
/src += $(FMLIB)\mbed-os\platform\mbed_wait_api_no_rtos.c 

/src += $(FMLIB)\mbed-os\events\EventQueue.cpp 
/src += $(FMLIB)\mbed-os\events\mbed_shared_queues.cpp 
/src += $(FMLIB)\mbed-os\events\equeue\equeue.c 
/src += $(FMLIB)\mbed-os\events\equeue\equeue_posix.c 
/src += $(FMLIB)\mbed-os\events\equeue\equeue_mbed.cpp 

/src += $(FMLIB)\mbed-os\features\filesystem\Dir.cpp
/src += $(FMLIB)\mbed-os\features\filesystem\File.cpp
/src += $(FMLIB)\mbed-os\features\filesystem\FileSystem.cpp
/src += $(FMLIB)\mbed-os\features\filesystem\littlefs\LittleFileSystem.cpp
/src += $(FMLIB)\mbed-os\features\filesystem\littlefs\littlefs\lfs.c
/src += $(FMLIB)\mbed-os\features\filesystem\littlefs\littlefs\lfs_util.c

/attach_intdir = rtos

/src += $(FMLIB)\inc\api\xos_rtx5\osMutexWait.c
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx4\cmsis_os1.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_memory.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_mempool.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_msgqueue.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_mutex.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_semaphore.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_system.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_thread.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_timer.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rt_OsEventObserver.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_delay.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_evflags.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_evr.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_kernel.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\rtx_lib.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Config\RTX_Config.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\Source\os_systick.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\Source\os_tick_ptim.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\mbed_rtx_handlers.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\mbed_boot.c 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\mbed_rtx_idle.cpp 
/src += $(FMLIB)\mbed-os\rtos\Thread.cpp 
/src += $(FMLIB)\mbed-os\rtos\EventFlags.cpp 
/src += $(FMLIB)\mbed-os\rtos\Mutex.cpp 
/src += $(FMLIB)\mbed-os\rtos\Kernel.cpp 
/src += $(FMLIB)\mbed-os\rtos\RtosTimer.cpp 
/src += $(FMLIB)\mbed-os\rtos\Semaphore.cpp 
/src += $(FMLIB)\mbed-os\rtos\ConditionVariable.cpp 
/src += $(FMLIB)\inc\api\xos_rtx5\xos_rtx5.cpp 
/src += $(FMLIB)\mbed-os\rtos\TARGET_CORTEX\rtx5\RTX\Source\TOOLCHAIN_ARM\TARGET_M3\irq_cm3.S 

/attach_intdir = target

/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\us_ticker.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\analogin_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\analogout_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\ethernet_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\gpio_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\gpio_irq_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\i2c_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\pinmap.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\port_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\pwmout_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\rtc_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\serial_api.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\sleep.c 
/src += $(FMLIB)\mbed-os\targets\TARGET_NXP\TARGET_LPC43XX\spi_api.c 
/src += $(FMLIB)\board\taaget_mbv22\can_api.c 

/attach_intdir = board

/src += $(FMLIB)\board\taaget_mbv22\cmsis_nvic.c 
/src += $(FMLIB)\board\taaget_mbv22\system_lpc18xx.c 
/src += $(FMLIB)\board\taaget_mbv22\eeprom_api.cpp 
/src += $(FMLIB)\board\taaget_mbv22\otp_18xx_43xx.c 
/src += $(FMLIB)\board\taaget_mbv22\aes_18xx_43xx.c 
/src += $(FMLIB)\board\taaget_mbv22\lpc18xx43xx_wwdt.cpp 
/src += $(FMLIB)\board\taaget_mbv22\TOOLCHAIN_ARM_MICRO\startup_LPC4337.S 

/src += $(FMLIB)\inc\drive\nandflash_HY27UF081G2A.cpp
/src += $(FMLIB)\inc\drive\mbed_5_8_blockdevice\SPIFBlockDevice.cpp

#/attach_intdir = rlnet

#/inc += E:\Keil_v5\ARM\PACK\Keil\MDK-Middleware\7.8.0\Network\Include

#/inc += $(FMLIB)\board\taaget_mbv22\net7_config\Network\Include
#/lib += $(FMLIB)\board\taaget_mbv22\net7_config\Net_Legacy.c
#/src += $(FMLIB)\board\taaget_mbv22\RTE_Driver\EMAC_LPC18xx.c
#/src += $(FMLIB)\board\taaget_mbv22\RTE_Driver\SCU_LPC18xx.c
#/src += $(FMLIB)\board\taaget_mbv22\RTE_Driver\PHY_LAN8720.c
#/src += $(FMLIB)\board\taaget_mbv22\net7_config\Net_Config.c
#/src += $(FMLIB)\board\taaget_mbv22\net7_config\\TFTP_Server_FS.cpp
#/src += $(FMLIB)\board\taaget_mbv22\net7_config\\TFTP_Server_Access.cpp
#/src += $(FMLIB)\board\taaget_mbv22\net7_config\\TFTP_Client_UIF.cpp


/attach_intdir = miniz

/inc += $(FMLIB)\zipper\miniz
/inc += $(FMLIB)\azure-c-shared-utility\inc
/inc += $(FMLIB)\azure-c-shared-utility\pal\generic

/ccdef += MINIZ_NO_STDIO
/ccdef += __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__

# 源文件/obj文件/lib文件 列表
/src += $(FMLIB)\miniz\miniz.c 
/src += $(FMLIB)\miniz\miniz_tdef.c 
/src += $(FMLIB)\miniz\miniz_tinfl.c 
/src += $(FMLIB)\miniz\miniz_zip.c 
/src += $(FMLIB)\mini_gzip\mini_gzip.c 

/attach_intdir = cutility

/lib += $(FMLIB)\inc\c-utility-pal\c-utility.lib
/src += $(FMLIB)\inc\c-utility-pal\agenttime_xos.c 
/src += $(FMLIB)\inc\c-utility-pal\httpapi_compact.c 
/src += $(FMLIB)\inc\c-utility-pal\socketio_xos.c 
/src += $(FMLIB)\inc\c-utility-pal\lock_xos.cpp 
/src += $(FMLIB)\inc\c-utility-pal\tickcounter_xos.cpp 
/src += $(FMLIB)\inc\c-utility-pal\condition_xos.cpp 
/src += $(FMLIB)\inc\c-utility-pal\baidu_http_signer.c 
/src += $(FMLIB)\inc\c-utility-pal\tcpsocketconnection_qSocket.cpp 
/src += $(FMLIB)\inc\c-utility-pal\threadapi_xos.cpp 

/attach_intdir = mqtt
/ccdef += MQTTCLIENT_QOS1=1
/ccdef += MQTTCLIENT_QOS2=0
/inc += $(FMLIB)\paho_mqtt\MQTTPacket\src
/inc += $(FMLIB)\paho_mqtt\MQTTClient\src
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTConnectClient.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTConnectServer.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTDeserializePublish.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTFormat.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTPacket.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTSerializePublish.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTSubscribeClient.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTSubscribeServer.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTUnsubscribeClient.c
/src += $(FMLIB)\paho_mqtt\MQTTPacket\src\MQTTUnsubscribeServer.c


before_postfix :=
postfix := lib
/target := $(before_postfix)mbed_$(Configuration).$(postfix)
